package com.company.exp2.factory;

import com.company.exp2.context.Context;
import com.company.exp2.context.impl.DefaultContext;
import com.company.exp2.typeEnum.ContextType;

/**
 * @author dyy
 * Context 的工厂类
 */
public class ContextFactory {

    private static final ContextType DEFAULT_TYPE = ContextType.DEFAULT;

    public static Context createInstance(ContextType type) {
        return new DefaultContext();
    }

    public static Context createDefaultInstance() {
        return createInstance(DEFAULT_TYPE);
    }

}
